package com.loadburn.heron.template;

import java.io.Serializable;

/**
 * @author slacrey (scstlinfeng@yahoo.com)
 *         Date: 13-10-27
 */
public class Template implements Serializable {

    public static final String CLASS_PATH_PREFIX = "classpath:";
    public static final String WEB_PATH_PREFIX = "webpath:";
    public static final String WEB_TEMPLATE = "__WEB__TEMPLATE__KEY__";
    private static final long serialVersionUID = -1948592163049521376L;
    private final String templateName;
    private final String text;
    private final TemplateSource source;

    public Template(String templateName, String text, TemplateSource source) {
        this.templateName = templateName;
        this.text = text;
        this.source = source;
    }

    public String getName() {
        return templateName;
    }

    public String getText() {
        return text;
    }

    public TemplateSource getTemplateSource() {
        return source;
    }
}